import request from '@/utils/request'

// 查询分配带教列表
export function listRegisterAllocation(query) {
  return request({
    url: '/business/registerAllocation/list',
    method: 'get',
    params: query
  })
}

// 查询分配带教所有列表
export function listAllRegisterAllocation(query) {
  return request({
    url: '/business/registerAllocation/listAll',
    method: 'get',
    params: query
  })
}

// 查询分配带教详细
export function getRegisterAllocation(id) {
  return request({
    url: '/business/registerAllocation/getInfo/' + id,
    method: 'get'
  })
}

// 新增分配带教
export function addRegisterAllocation(data) {
  return request({
    url: '/business/registerAllocation/add',
    method: 'post',
    data: data
  })
}

// 修改分配带教
export function updateRegisterAllocation(data) {
  return request({
    url: '/business/registerAllocation/edit',
    method: 'post',
    data: data
  })
}

// 删除分配带教
export function delRegisterAllocation(id) {
  return request({
    url: '/business/registerAllocation/remove/' + id,
    method: 'get'
  })
}
